<!DOCTYPE html>
<html>
	<head>
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover">
	    <meta name="apple-mobile-web-app-capable" content="yes" />
	    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
	    <meta name="format-detection" content="telephone=no" />
		<title>feishu close</title>
		<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>

		<script type="text/javascript" src="https://s3.bytecdn.cn/ee/lark/js_sdk/h5-js-sdk-1.4.13.js"> </script>

	</head>
	<body>
		<button onclick="closeWindow()">关闭当前页面</button>

		<button onclick="closeWindow2()">feishu close</button>

		<div id="js-test"></div>

		<script type="text/javascript">
			function closeWindow (){
				try{
					$("#js-test").append("<p>success</p>")
					window.close();
					$("#js-test").append("<p>arter close success</p>")
				}catch(e){
					$("#js-test").append("<p>close fail</p>")
				}
			}

			function closeWindow2(){
				location.href = "feishuclosewindow.html?v=3";
			}
		</script>
	</body>
</html>